package com.cx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cx.entity.Article;
import com.cx.mapper.ArticleMapper;
import com.cx.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements ArticleService {
    @Autowired
    ArticleMapper articleMapper;
    @Override
    public List<Article> getAll() {
        return this.baseMapper.getAll();
    }

    @Override
    public List<Article> getHotArticle() {
        return articleMapper.getHotArticle();
    }
}
